/* Prerequest: iphone-universal/stylesheets/iphone.css */
/* 

	Universal iPhone UI Kit 1.0
	Author: Diego Martín Lafuente.
	E-Mail: dlafuente@gmail.com
	AIM: Minidixier
	Licence: AGPLv3
	date: 2008-08-09
	
	URL: www.minid.net
	SVN URL: http://code.google.com/p/iphone-universal/source/checkout
	Download: http://code.google.com/p/iphone-universal/downloads/list
	*/
	body {
		margin: 0px;
		padding: 0px;
		font-family: Helvetica;
	}
	
	body#nothing, div#nothing {
		background: rgb(197,204,211) url(images/stripes.png);
		-webkit-user-select: none;
		-webkit-text-size-adjust: none;
		}

		/* standard header on body */
		
		div#header + h1, ul + h1 {
			color: rgb(76,86,108);
			font: bold 18px Helvetica;
			text-shadow: #fff 0 1px 0;
			margin: 15px 0 0 10px;  
			}
		


		/* standard paragraph on body */
		
		ul + p, ul.data + p + p, ul.form + p + p {
			color: rgb(76,86,108);
			font: 14px Helvetica;
			text-align: center;
			text-shadow: white 0 1px 0;
			margin: 0 10px 17px 0;
			}


		











		
		/* headers */

		div#header {
			background: rgb(109,133,163) url(images/bgHeader.png) repeat-x top;
			border-top: 1px solid rgb(205,213,223);
			border-bottom: 1px solid rgb(46,55,68);
			padding: 10px;
			margin: 0 0 0 -10px;
			height: 44px;
			-webkit-box-sizing: border-box;
			}


				div#header h1 {
					color: #fff;
					font: bold 20px/30px Helvetica;
					text-shadow: #2d3642 0 -1px 0;
					text-align: center;
					text-overflow: ellipsis;
					white-space: nowrap;
					overflow: hidden;
					width: 49%;
					padding: 5px 0;
					margin: 2px 0 0 -24%;
					position: absolute;
					top: 0;
					left: 50%;
					}

					div#header a {
						color: #FFF;
						background: none;
						font: bold 12px/30px Helvetica;
						border-width: 0 5px;
						margin: 0;
						padding: 0 3px;
						width: auto;
						height: 30px;
						text-shadow: rgb(46,55,68) 0 -1px 0;
						text-overflow: ellipsis;
						text-decoration: none;
						white-space: nowrap;
						position: absolute;
						overflow: hidden;
						top: 7px;
						right: 6px;
						-webkit-border-image: url(images/toolButton.png) 0 5 0 5;
						-moz-border-image: url(images/toolButton.png) 0 5 0 5;
						}

						div#header #backButton {
							left: 6px;
							right: auto;
							padding: 0;
							max-width: 55px;
							border-width: 0 8px 0 14px;
							-webkit-border-image: url(images/backButton.png) 0 8 0 14;
							-moz-border-image: url(images/backButton.png) 0 8 0 14;
							}


						.Action {
							border-width: 0 5px;
							-webkit-border-image: url(images/actionButton.png) 0 5 0 5;
							-moz-border-image: url(images/actionButton.png) 0 8 0 14;
						}


						
						div#header ul {
							margin-top: 15px;
						}
						
						div#header p {
							color: rgb(60,70,80);
							font-weight: bold;
							font-size: 13px;
							text-align: center;
							clear: both;
							position: absolute;
							top: 4px;
							left: 35px;
							right: 35px;
							margin: 0;
							text-shadow: #C0CBDB 0 1px 0;
							text-overflow: ellipsis;
							white-space: nowrap;
							overflow: hidden;
						}
						
						div.pre {
							height: 60px;
							}


							div.pre h1 {
								top: 18px !important;
								}
								
							div.pre a {
								top: 25px !important;
								right: 6px;
								}
								
							div.pre a#Backbutton {
								left: 6px !important;
							}	

/* option panel */

	div#optionpanel {
		background: url(images/blackbg.png) top left repeat-x;
		text-align: center;
		padding: 20px 10px 15px 10px;
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		}

		div#optionpanel h2 {
			font-size: 17px;
			color: #fff;
			text-shadow: #000 0 1px 0;
		}

/***** BUTTONS *****/

.button {
	color: #fff;
	font: bold 20px/46px Helvetica;
	text-decoration: none;
	text-align: center;
	text-shadow: #000 0 1px 0;
	border-width: 0px 14px 0px 14px;
	display: block;
	margin: 3px 0;
	}

	.green { -webkit-border-image: url(images/greenButton.png) 0 14 0 14;
	-moz-border-image: url(images/greenButton.png) 0 14 0 14; }
	.red { -webkit-border-image: url(images/redButton.png) 0 14 0 14;
	-moz-border-image: url(images/redButton.png) 0 14 0 14; }

	.white {
		color: #000;
		text-shadow: #fff 0px 1px 0;
		-webkit-border-image: url(images/whiteButton.png) 0 14 0 14;
		-moz-border-image: url(images/whiteButton.png) 0 14 0 14;
		}

	.black { -webkit-border-image: url(images/grayButton.png) 0 14 0 14;
	-moz-border-image: url(images/grayButton.png) 0 14 0 14; }
											
												
/* WF definition */
body { width:100%; position:relative; }
body[orient=landscape] {
	min-height:270px;	
}

body[orient=portrait] {
	min-height:416px;	
}

body.gap[orient=landscape] {
	min-height:314px;	
}

body.gap[orient=portrait] {
	min-height:460px;	
}

body.simulator {
	background-image: url(iphone-skin.png);
	background-repeat: no-repeat;
	height: 750px;
	
	background-color:#FFFFFF;
	margin:0;
	padding:0;	
}

#loading {
	width: 16px;
	height: 16px;
	z-index: 9999;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -8px;
	margin-top: -8px;
	background-image: url(ajax-loader.gif);
}

/* table list */
/* rounded rectangle'd lists */
table {
	color: black;
	background: #fff;
	font: normal 17px Helvetica;
	padding: 0;	   
	margin: 0px;
    border-collapse: separate;
    border-spacing: 0;
    *border-collapse: collapse; /* hack is needed for IE7 also */
	width: 300px;
	border: 1px solid rgb(180,180,180);
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	}
	
	tr td{
		color: black;
		border-top: 1px solid rgb(180,180,180);	
		border-bottom: 0px;
		padding: 10px 10px 14px 10px;
		position: relative;
		font: normal 17px Helvetica;
		vertical-align: top;
		max-width: 70%;
		}
		
		tr td:first-child {
			padding-left: 5px;
		}
		
		tr:first-child td {
			border-top: 0px;
		}

		tr:last-child td {
			border-bottom: 0px;
		}

		tr td:last-child {
			padding-right: 5px;
		}

		table tr:first-child td:first-child,
		table tr:first-child td:first-child{	
			-webkit-border-top-left-radius: 8px;
			-moz-border-radius-topleft: 8px;
			}

		table tr:first-child td:last-child,
		table tr:first-child td:last-child{	
			-webkit-border-top-right-radius: 8px;
			-moz-border-radius-topright: 8px;
			}
			
		table tr:last-child td:first-child,
		table tr:last-child td:first-child{	
			-webkit-border-bottom-left-radius: 8px;
			-moz-border-radius-bottomleft: 8px;
			}

		table tr:last-child td:last-child,
		table tr:last-child td:last-child{	
			-webkit-border-bottom-right-radius: 8px;
			-moz-border-radius-bottomright: 8px;
			}
		
	/* main link on lists */
	
	tr td a {
		}
		
		tr td a.arrow {
			color: black;
			text-decoration: none;
			padding: 10px 10px 10px 10px;
			margin: -10px;
			display: block;
			position: relative;
			-webkit-tap-highlight-color:rgba(0,0,0,0);
			background-image: url(images/chevron.png); 
			background-repeat: no-repeat;
			background-position: right 18px;
			min-height: 13px;
		}
		
		tr.arrow {
			cursor: pointer;
		}
		
		tr.arrow:hover{
			background: rgb(51,102,204);
			}

		tr.arrow:hover td a{
			color: white;
			}

		tr td a.arrow small {
			padding-right: 20px;
		}
		
		
		/*tr td a:hover, tr td a:hover small, tr td:hover h3 {
			color: white;
		}*/

			
		tr:last-child td a.arrow {
			padding: 10px 10px 14px 10px;
			margin: -10px -10px -14px -10px;
			}
			
		tr td div {
			/* display: inline; */
			/* margin: 10px; */
			min-width: 70px;
		}

		body[orient=landscape] table {
			width: 460px;
		}

	/* fullscreen table list */		
		table[wf_style=fullscreen],
		table.wf_style_fullscreen {
			border: 0px;
			width: 320px;
		}

		/* controls the radius borders */
		table[wf_style=fullscreen] tr td,
		table.wf_style_fullscreen tr td{
			-webkit-border-radius: 0px;
			-moz-border-radius: 0px;
		}

		table[wf_style=fullscreen] tr:last-child td,
		table.wf_style_fullscreen tr:last-child td {
			border-bottom: 1px solid rgb(180,180,180);
		}

		table[wf_style=fullscreen] tr:first-child td:first-child,
		table[wf_style=fullscreen] tr:first-child td:last-child,
		table[wf_style=fullscreen] tr:last-child td:first-child,
		table[wf_style=fullscreen] tr:last-child td:last-child,
		table.wf_style_fullscreen tr:first-child td:first-child,
		table.wf_style_fullscreen tr:first-child td:last-child,
		table.wf_style_fullscreen tr:last-child td:first-child,
		table.wf_style_fullscreen tr:last-child td:last-child {
			-webkit-border-radius: 0px;
			-moz-border-radius: 0px;
		}
					
		body#normal[orient=landscape] table[wf_style=fullscreen],
		body#normal[orient=landscape] table.wf_style_fullscreen {
			width: 480px;
		}

		table tr[wf_style=header] td,
		table tr.wf_style_header td {
			color: #fff;
			background: rgb(154,159,170) url(images/bglight.png) top left repeat-x;
			border-top: 1px solid rgb(165,177,186);
			text-shadow: #666 0 1px 0;
			margin: 0;
			padding: 2px 10px;
		}
		
	/* transparent table */
		table[wf_style=transparent],
		table.wf_style_transparent {
			background-color: transparent;
			border: 0px;
		}

		table[wf_style=transparent] td,
		table.wf_style_transparent td {
			border: 0px;
		}

.margin {
	margin:10px 10px 0px 10px;
}

/* header */
div#header {
	z-index: 9999;
	margin: 0px;
}

/*
body.webapp div#header {
	position: static;
}
*/

div#topbar {
	background: rgb(109,133,163) url(images/bgHeader.png) repeat-x top;
	border-top: 1px solid rgb(205,213,223);
	border-bottom: 1px solid rgb(46,55,68);
	padding: 5px;
	-webkit-box-sizing: border-box;
	z-index: 9999;
	margin: 0px;
}

div#topbar form, div[wf_type=toolbar] form {
	padding:0px;
	margin:0px;
}

div#topbar input[type=text], div#topbar input[type=password],
div#topbar select {
	width:310px;
}
/*
body.webapp div#topbar {
	position: static;
}
*/
body[orient=landscape] div#topbar input[type=text], 
body[orient=landscape] div#topbar input[type=password],
body[orient=landscape] div#topbar select {
	width:470px;
}

div#topbar input[type=submit] {
	display:none;
}
/*
span[wf_style=prompt], div[wf_style=prompt], label[wf_style=prompt],
span.wf_style_prompt, div.wf_style_prompt, label.wf_style_prompt
{
	font-weight: bold;
	padding-right:4px;
	float:left;
	width:100px;
}


span[wf_style=align_right], div[wf_style=align_right], 
span.wf_style_align_right, div.wf_style_align_right {
	float:left;
	display:block;
	width:192px;
	overflow:hidden;
}

div[wf_style=align_right] input[type=text],
div[wf_style=align_right] input[type=file],
div[wf_style=align_right] input[type=password],
div[wf_style=align_right] select,
span[wf_style=align_right] input[type=text],
span[wf_style=align_right] input[type=file],
span[wf_style=align_right] input[type=password],
span[wf_style=align_right] select,
div.wf_style_align_right input[type=text],
div.wf_style_align_right input[type=file],
div.wf_style_align_right input[type=password],
div.wf_style_align_right select,
span.wf_style_align_right input[type=text],
span.wf_style_align_right input[type=file],
span.wf_style_align_right input[type=password],
span.wf_style_align_right select {
	width:190px;
}

table[wf_style=rounded] div[wf_style=align_right],
table[wf_style=rounded] span[wf_style=align_right],
table.wf_style_rounded div.wf_style_align_right,
table.wf_style_rounded span.wf_style_align_right{
	width:172px;
}

table[wf_style=rounded] div[wf_style=align_right] input[type=text],
table[wf_style=rounded] div[wf_style=align_right] input[type=file],
table[wf_style=rounded] div[wf_style=align_right] input[type=password],
table[wf_style=rounded] div[wf_style=align_right] select,
table[wf_style=rounded] span[wf_style=align_right] input[type=text],
table[wf_style=rounded] span[wf_style=align_right] input[type=file],
table[wf_style=rounded] span[wf_style=align_right] input[type=password],
table[wf_style=rounded] span[wf_style=align_right] select,
table.wf_style_rounded div.wf_style_align_right input[type=text],
table.wf_style_rounded div.wf_style_align_right input[type=file],
table.wf_style_rounded div.wf_style_align_right input[type=password],
table.wf_style_rounded div.wf_style_align_right select,
table.wf_style_rounded span.wf_style_align_right input[type=text],
table.wf_style_rounded span.wf_style_align_right input[type=file],
table.wf_style_rounded span.wf_style_align_right input[type=password],
table.wf_style_rounded span.wf_style_align_right select {
	width:170px;
}


body[orient=landscape] div[wf_style=align_right] {
	width:352px;
}

body[orient=landscape] div[wf_style=align_right] input[type=text],
body[orient=landscape] div[wf_style=align_right] input[type=file],
body[orient=landscape] div[wf_style=align_right] input[type=password],
body[orient=landscape] div[wf_style=align_right] select {
	width:350px;
}
*/
/* map */
div.wf_map {
	width: 100%;
	position: absolute;
	left: 0px;
	top: 0px;
	z-index: 10;
}

div.wf_map {
	height:416px;	
}

body[orient=landscape] div.wf_map {
	height:270px;	
}

div.gap div.wf_map,
body.gap div.wf_map {
	height:460px;	
}

body[orient=landscape] div.gap div.wf_map,
body.gap[orient=landscape] div.wf_map {
	height:314px;	
}

div[wf_type=map] a {
	display: block;
}

/*body.map {
	position:relative;
	overflow:hidden;
}*/

.wf_map_flag_label {
	width: 100px;
	padding: 0px 18px 0px 0px;
	background-color: white;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	border: 2px solid black;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	
	background-image: url(images/chevron.png);
	background-position: right center;
	background-repeat: no-repeat;
}

div[wf_type=tab_bar] a {
	display: block;
}

div#tab{
/*	position:absolute; */
	left:0px;
	bottom:0px;
	height:44px;
	background: url("bg.png") repeat-x center bottom;
	width:100%;
	z-index:9999;
	overflow:visible;
}

div.tab div.tabitem {
	float:left;
	width:62px;
	margin:1px;
	height:42px;
	text-align:center;
	position:relative;
	cursor:pointer;
	-webkit-border-radius:4px;
	-moz-border-radius:4px;
	font-size:10px;
	font-weight:bold;
	color:gray;
	overflow:hidden;
}

div.tab div.tabitem div.title {
	text-overflow:ellipsis;
	white-space: nowrap;
	overflow: hidden;
	height:12px;
}

div.tab div.on {
	background-image: url(tab-bg.png);
	color:white;
}

div.tab div.tabitem img{
	border:0px;
	max-height:30px;
	_height:30px;
	cursor:pointer;
}

div.tab_1 div.tabitem {
	width:318px;
}

div.tab_2 div.tabitem {
	width:158px;
}

div.tab_3 div.tabitem {
	width:104.66px;
}

div.tab_4 div.tabitem {
	width:78px;
}

body[orient=landscape] div.tab div.tabitem{
	width:94px;
}

body[orient=landscape] div.tab_1 div.tabitem {
	width:478px;
}

body[orient=landscape] div.tab_2 div.tabitem {
	width:238px;
}

body[orient=landscape] div.tab_3 div.tabitem {
	width:158px;
}

body[orient=landscape] div.tab_4 div.tabitem {
	width:118px;
}
/*
body.webapp div#tab {
	position: static;
}
*/
/*
body.webapp div#tab{
	height:14px;
}

body.webapp div.tabitem {
	height:12px;
}

body.webapp div.tab div.tabitem img {
	display: none;	
}
*/
div#toolbar {
	position:absolute;
	left:-10000px;
	top:0px;
}

a img {
	border:0px;
}

div#optionpanel {
	z-index: 10000;
}

td img[wf_style=icon],
div img[wf_style=icon],
td img.wf_style_icon,
div img.wf_style_icon {
	width: 75px;
	margin-right: 10px;
	float: left;
}

div[wf_style=alert],
div.wf_style_alert
{
	color: red;
	text-align: center;
	margin: 5px;
}

div[wf_style=center],
div.wf_style_center {
	text-align: center;
}

div[wf_type=info] {
	position:absolute;
	top:-8px;
	left:0px;
	height: 16px;
	min-width: 16px;
	border: 2px solid white;
	background-color: red;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	-webkit-box-shadow: 0px 3px 2px gray;
	-moz-box-shadow: 0px 3px 2px gray;
	color: white;
	font-size: 10px;
	font-weight: bold;
	text-align: center;
	background:url(images/red-badge-bg.png) repeat-x;
}
